package com.zkthink.ceres.applet.authority.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.zkthink.ceres.applet.authority.domain.entity.AppletMember;
import com.zkthink.ceres.applet.user.vo.CustomerVo;
import com.zkthink.clh.order.dto.CouponsPageDTO;
import com.zkthink.clh.order.entity.AppletVip;
import com.zkthink.clh.order.entity.ChlCoupons;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**

@Author cmz
@Date 2024-04-29 16:39
*/
public interface AppletMemberMapper extends BaseMapper<AppletMember> {
    List<AppletMember> selectByReferPhone(@Param("phone") String phone);

    List<CustomerVo> selectCustomer();

    @Select("select * from  applet_vip")
    List<AppletVip> selectVip();

    IPage<ChlCoupons> findCoupons(IPage page, @Param("dto") CouponsPageDTO model);

    @Select("select * from applet_vip where id = #{id}")
    AppletVip findVipById(String id);
}